// 入口文件
import Vue from 'vue';
//导入路由模块
import VueRouter from 'vue-router';
// 导入 App 根组件
import app from './App.vue';
//安装路由
Vue.use(VueRouter);
//导入vue-resource
import vueResource from 'vue-resource';
Vue.use(vueResource);
//导入mui的样式
import './lib/mui/css/mui.min.css';
import './lib/mui/css/icons-extra.css';
//导入mint-ui头部组件并注册
import { Header, Swipe, SwipeItem } from 'mint-ui';
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
//导入自己的路由模块
import router from './router'

var vm = new Vue({
  el: '#app',
  render: h => h(app),
  router //挂载导入的路由对象
})